package com.daigoudao.util;

/**
 * 系统常量
 * 
 * @author yangfeng
 * 
 */
public class Constants {

	public final static String USER_INFO = "user";

	public static final String CART = "cart";
	
	//平台费率
	public static final String RATE = "rate";

	public final static String CAPTCHA_ID = "captcha_id";

	public final static String UPLOAD_IMG_DIR = "upload.resDir";
	public final static int USER_TYPE_GENERAL = 1;

	/**
	 * 用户类型：经纪人
	 */
	public final static int USER_TYPE_BROKER = 2;

	public final static String UPLOAD_IMG_URL = "upload.resUrl";

	public final static String UPLOAD_IMG_CARD_DIR = "cards";

	public final static String ROOT_URL = "common.rootUrl";

	public final static String STAR_S1 = "star_s1.gif";
	public final static String STAR_S2 = "star_s2.gif";
	public final static String STAR_S3 = "star_s3.gif";
	public final static String STAR_S4 = "star_s4.gif";
	public final static String STAR_S5 = "star_s5.gif";
	public final static String STAR_S6 = "star_s6.gif";
	public final static String STAR_S7 = "star_s7.gif";
	public final static String STAR_S8 = "star_s8.gif";
	public final static String STAR_S9 = "star_s9.gif";
	public final static String STAR_S10 = "star_s10.gif";
	public final static String DEFAULT_HEAD = "/images/head.jpg";
	public static final String DEFAULT_PRODUCT_PIC = "/images/product.jpg";

	public static final String ERR_MSG_KEY = "errMsg";

	public static final String ERR_MSG = "系统忙，请稍候再试";

	public static final String URL = "url";

	public static final int PAGE_SIZE = 8;

	public static final String UTF_ENCODING = "UTF-8";
	
	public static final int SCALE = 2;



	/************************* 支付宝相关常量 *************************/
	
	public static final String TRADE_FINISHED = "TRADE_FINISHED";

	public static final String TRADE_SUCCESS = "TRADE_SUCCESS";
	
	public static final String NOTIFY_ID = "notify_id";

	public static final String ALIPAY_GATEWAY = "https://mapi.alipay.com/gateway.do?";

	/**
	 * 支付宝通知验证地址
	 */
	public static final String HTTPS_VERIFY_URL = "https://mapi.alipay.com/gateway.do?service=notify_verify&";

	public static final String SERVICE = "service";

	public static final String PARTNER = "partner";

	public static final String INPUT_CHARSET = "_input_charset";

	public static final String SIGN_TYPE = "sign_type";

	public static final String SIGN = "sign";

	public static final String NOTIFY_URL = "notify_url";

	public static final String RETURN_URL = "return_url";

	public static final String OUT_TRADE_NO = "out_trade_no";

	public static final String SUBJECT = "subject";

	public static final String PAYMENT_TYPE = "payment_type";

	public static final String SELLER_ID = "seller_id";

	public static final String TOTAL_FEE = "total_fee";

	public static final String KEY = "key";

	public static final String ALIPAY_CONFIG = "alipay.";

	public static final String PAYMENT_TYPE_VALUE = "1";

	public static final String SIGN_TYPE_VALUE = "MD5";
	
	
}
